<template>
  <div id="app">
    <el-row>
      <el-col :span="24">
        <div class="mt20">
          <router-link to="/gltf1"><el-button type="primary">模型1</el-button></router-link>
          <router-link to="/gltf2" class="ml20"><el-button type="primary">模型2</el-button></router-link>
        </div>
      </el-col>
      <!-- 使用 router-view 显示当前路由对应的组件 -->
      <router-view></router-view>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'App',
  components: { }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 0px;
}
.mt20{magrin-top:20px;}
.ml20{margin-left:20px;}
</style>
